<script>
Damn.prototype.say = function(){
    console.log('DDDDDDDDDDDDDDDDDDDDDamn!');
}

function Damn(){
this.name = 'Kakarotto'
}

let D = new Damn(); //实例对象
let D2 = new Damn();
D.name = 'Sun GoKu'
D2.say()
</script>